package cn.zhang.controller;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.zhang.entity.Person;

@Controller
public class PersonController {

	@RequestMapping("getP")
	public Person getPerson() {
		
		Person p = new Person();
		p.setBirthday(new Date());
		
		return p;
		
	}
}
